<?php
/**
 * Created by PhpStorm.
 * User: chenx
 * Date: 18-3-13
 * Time: 下午6:31
 */

namespace common\models;


use yii\db\ActiveRecord;

class Banner extends ActiveRecord
{
    public static function tableName()
    {
        return 'banner';
    }

    public function rules()
    {
        return [
          [['img_url'],'string'],
          [['id','oid','create_time','is_del','type','show_platform','update_time'],'integer'],
        ];
    }

    public function attributeLabels()
    {
        return [
            'id	'=>'id',
            'oid'=>'oid',
            'img_url'=>'连接',
            'is_del'=>'1隐藏 0显示',
            'type'=>'1活动 2商家',
            'show_platform'=>'显示平台',
            'create_time'=>'创建时间',
            'update_time'=>'发送时间',
        ];
    }
}